package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.entity.Car;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @Mapper与@Repository注解意思相同
 */
@Mapper
public interface CarMapper {
    int add(Car car);

    int del(int carId);

    int update(Car car);

    Car get(int carId);

    List<Car> getList();
}
